<html>
   <head>
      <link rel="stylesheet" type="text/css" href="style.css" />
   </head>
   <body onload="">
<h2 class="comptitle">Network <i>Mac80211</i></h2>
<b>Package:</b> org.mixim.examples.Mac80211<br/><b>File: <a href="examples-Mac80211-Mac80211.ned.html">examples/Mac80211/Mac80211.ned</a></b><br/>
<p>This example shows how to use MiXiMs 802.11 protocol implementation. </p>
<p>The network consists of ten hosts broadcasting bursts of three packets
to the other hosts. When a broadcast is received a reply is sent back 
to the sender.</p>
<p>The hosts use "Mac80211" as MAC layer and their phy layer uses 
"SimplePathlossModel" as AnalogueModel and "Decider80211" as Decider.
Note that Mac80211 and Decider80211 are always meant to be used
together.</p>
<p>The default configuration in omnetpp.ini uses no propagation delay.</p>
<img src="org.mixim.examples.Mac80211.Mac80211-type.png" ismap="yes" usemap="#type-diagram"/><map name="type-diagram">
<area shape="rect" href="org.mixim.base.modules.BaseWorldUtility.html" title="BaseWorldUtility" alt="BaseWorldUtility" coords="154,50,196,109">
<area shape="rect" href="org.mixim.base.connectionManager.ConnectionManager.html" title="ConnectionManager" alt="ConnectionManager" coords="5,46,132,109">
<area shape="rect" href="org.mixim.modules.node.Host80211.html" title="Host80211" alt="Host80211" coords="20,159,124,216">
</map>
<h3 class="subtitle">Usage diagram:</h3>
<p>The following diagram shows usage relationships between types.
Unresolved types are missing from the diagram. Click <a href="full-ned-usage-diagram.html">here</a> to see the full picture.</p>
<img src="org.mixim.examples.Mac80211.Mac80211-usage.png" ismap="yes" usemap="#usage-diagram"/><map name="usage-diagram"><area shape="rect" id="node1" href="org.mixim.examples.Mac80211.Mac80211.html" title="Network Mac80211" alt="" coords="169,6,252,34">
<area shape="rect" id="node2" href="org.mixim.base.connectionManager.ConnectionManager.html" title="Simple Module ConnectionManager" alt="" coords="5,83,144,111">
<area shape="rect" id="node4" href="org.mixim.modules.node.Host80211.html" title="Compound Module Host80211" alt="" coords="168,83,253,111">
<area shape="rect" id="node6" href="org.mixim.base.modules.BaseWorldUtility.html" title="Simple Module BaseWorldUtility" alt="" coords="277,83,397,111">
</map>
<h3 class="subtitle">Inheritance diagram:</h3>
<p>The following diagram shows inheritance relationships for this type.
Unresolved types are missing from the diagram. Click <a href="full-ned-inheritance-diagram.html">here</a> to see the full picture.</p>
<img src="org.mixim.examples.Mac80211.Mac80211-inheritance.png" ismap="yes" usemap="#inheritance-diagram"/><map name="inheritance-diagram"><area shape="rect" id="node1" href="org.mixim.examples.Mac80211.Mac80211.html" title="Network Mac80211" alt="" coords="5,6,88,34">
</map>
<h3 class="subtitle">Parameters:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Default value</th>
      <th>Description</th>
   </tr>
<tr class="local">
   <td width="150">playgroundSizeX</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>x size of the area the nodes are in (in meters)</p>
   </td>
</tr>
<tr class="local">
   <td width="150">playgroundSizeY</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>y size of the area the nodes are in (in meters)</p>
   </td>
</tr>
<tr class="local">
   <td width="150">playgroundSizeZ</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>z size of the area the nodes are in (in meters)</p>
   </td>
</tr>
<tr class="local">
   <td width="150">numHosts</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>total number of hosts in the network</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Properties:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Value</th>
      <th>Description</th>
   </tr>
<tr>
   <td width="150">isNetwork</td>
   <td width="100"><i></i></td>
   <td></td>
</tr>
<tr>
   <td width="150">display</td>
   <td width="100"><i>bgb=$playgroundSizeX,$playgroundSizeY,white,,;bgp=10,50</i></td>
   <td>
</td>
</tr>
</table>
<h3 class="subtitle">Unassigned submodule parameters:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Default value</th>
      <th>Description</th>
   </tr>
<tr>
   <td><a href="org.mixim.base.modules.BaseWorldUtility.html">world</a>.coreDebug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>debug switch for the base framework</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.modules.BaseWorldUtility.html">world</a>.useTorus</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>use the playground as torus?</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.modules.BaseWorldUtility.html">world</a>.use2D</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>use a 2-dimensional world?</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.connectionManager.ConnectionManager.html">connectionManager</a>.coreDebug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>debug switch for core framework</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.connectionManager.ConnectionManager.html">connectionManager</a>.sendDirect</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>send directly to the node or create separate gates for every connection</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.connectionManager.ConnectionManager.html">connectionManager</a>.pMax</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>maximum sending power used for this network [mW]</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.connectionManager.ConnectionManager.html">connectionManager</a>.sat</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>minimum signal attenuation threshold [dBm]</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.connectionManager.ConnectionManager.html">connectionManager</a>.alpha</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>minimum path loss coefficient</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.connectionManager.ConnectionManager.html">connectionManager</a>.carrierFrequency</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>minimum carrier frequency of the channel [Hz]</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.base.connectionManager.ConnectionManager.html">connectionManager</a>.drawMaxIntfDist</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
<p>should the maximum interference distance be displayed for each node?</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.base.modules.BaseUtility.html">utility</a>.coreDebug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>debug switch for the base framework</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.base.modules.BaseArp.html">arp</a>.coreDebug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>debug switch for the core framework</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.base.modules.IBaseMobility.html">mobility</a>.x</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>x coordinate of the nodes' position (-1 = random)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.base.modules.IBaseMobility.html">mobility</a>.y</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>y coordinate of the nodes' position (-1 = random)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.base.modules.IBaseMobility.html">mobility</a>.z</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>z coordinate of the nodes' position (-1 = random)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.base.modules.IBaseApplLayer.html">appl</a>.headerLength</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120"></td>
   <td>
<p>length of the application message header (in bits)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.base.modules.IBaseNetwLayer.html">net</a>.stats</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>stats switch</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.base.modules.IBaseNetwLayer.html">net</a>.headerLength</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>length of the network packet header (in bits)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.notAffectedByHostState</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.coreDebug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>debug switch</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.headerLength</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">272bit</td>
   <td>
<p>length of the MAC packet header (in bits)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.debug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
<p>enable debugging for this module</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.queueLength</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">20</td>
   <td>   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.rtsCtsThreshold</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">-1</td>
   <td>
<p>Number of bits in a packet before RTS/CTS is used. 
Is currently not used.</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.bitrate</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">2E+6bps</td>
   <td>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.autoBitrate</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
<p>auto bit rate selection support: specify borders at which
to change modulation.</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.snr2Mbit</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">1.46dB</td>
   <td>
<p>threshold to use 2Mbit (in dB)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.snr5Mbit</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">2.6dB</td>
   <td>
<p>threshold to use 5.5Mbit (in dB)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.snr11Mbit</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">5.68dB</td>
   <td>
<p>threshold to use 11Mbit (in dB)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.neighborhoodCacheSize</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">30</td>
   <td>
<p>keep information on neighborhood</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.neighborhoodCacheMaxAge</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">100s</td>
   <td>
<p>consider information in cache outdate if older than (in seconds)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.mac.Mac80211.html">mac</a>.txPower</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">110.11mW</td>
   <td>
<p>the power to transmit packets with [mW]</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.coreDebug</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>debug switch for core framework</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.recordStats</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">false</td>
   <td>
<p>enable/disable tracking of statistics (eg. cOutvectors)</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.usePropagationDelay</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>Should transmission delay be simulated?</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.thermalNoise</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>the strength of the thermal noise [dBm]</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.useThermalNoise</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>should thermal noise be considered?</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.analogueModels</td>
   <td width="100">
      <i>xml</i>
   </td>
   <td width="120"></td>
   <td>
<p>Specification of the analogue models to use and their parameters</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.decider</td>
   <td width="100">
      <i>xml</i>
   </td>
   <td width="120">xmldoc("Nic80211_Decider.xml")</td>
   <td>
<p>Specification of the decider to use and its parameters</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.sensitivity</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">-119.5dBm</td>
   <td>
<p>The sensitivity of the physical layer [dBm]</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.maxTXPower</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>The maximum transimission power of the physical layer [mW]</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.initialRadioState</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">0</td>
   <td>
<p>state the radio is initially in</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.radioMinAtt</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">1.0</td>
   <td>
<p>radios gain factor (attenuation) while receiving</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.radioMaxAtt</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120">0.0</td>
   <td>
<p>radios gain factor (attenuation) while not receiving</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.nbRadioChannels</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">15</td>
   <td>
<p>Number of available radio channels. Defaults to single channel radio.</p>
   </td>
</tr>
<tr>
   <td><a href="org.mixim.modules.node.Host80211.html">host</a>.<a href="org.mixim.modules.nic.Nic80211.html">nic</a>.<a href="org.mixim.modules.phy.PhyLayer.html">phy</a>.initialRadioChannel</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">1</td>
   <td>
<p>Initial radio channel.</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Source code:</h3>
<pre class="src"><span style="color: #808080; font-style: italic; ">//
//This example shows how to use MiXiMs 802.11 protocol implementation. 
//
//The network consists of ten hosts broadcasting bursts of three packets
//to the other hosts. When a broadcast is received a reply is sent back 
//to the sender.
//
//The hosts use &quot;Mac80211&quot; as MAC layer and their phy layer uses 
//&quot;SimplePathlossModel&quot; as AnalogueModel and &quot;Decider80211&quot; as Decider.
//Note that Mac80211 and Decider80211 are always meant to be used
//together.
//
//The default configuration in omnetpp.ini uses no propagation delay.
//
</span><span style="color: #800000; font-weight: bold; ">network</span><span style="color: #000000; "> </span><span style="color: #000000; ">Mac80211</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000080; font-weight: bold; ">double</span><span style="color: #000000; "> </span><span style="color: #000000; ">playgroundSizeX</span><span style="color: #000000; "> </span><span style="color: #000000; font-weight: bold; ">@unit</span><span style="color: #000000; ">(</span><span style="color: #000000; ">m</span><span style="color: #000000; ">); </span><span style="color: #808080; font-style: italic; ">// x size of the area the nodes are in (in meters)
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">double</span><span style="color: #000000; "> </span><span style="color: #000000; ">playgroundSizeY</span><span style="color: #000000; "> </span><span style="color: #000000; font-weight: bold; ">@unit</span><span style="color: #000000; ">(</span><span style="color: #000000; ">m</span><span style="color: #000000; ">); </span><span style="color: #808080; font-style: italic; ">// y size of the area the nodes are in (in meters)
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">double</span><span style="color: #000000; "> </span><span style="color: #000000; ">playgroundSizeZ</span><span style="color: #000000; "> </span><span style="color: #000000; font-weight: bold; ">@unit</span><span style="color: #000000; ">(</span><span style="color: #000000; ">m</span><span style="color: #000000; ">); </span><span style="color: #808080; font-style: italic; ">// z size of the area the nodes are in (in meters)
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">double</span><span style="color: #000000; "> </span><span style="color: #000000; ">numHosts</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// total number of hosts in the network  
</span><span style="color: #000000; ">
        </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;bgb=$playgroundSizeX,$playgroundSizeY,white,,;bgp=10,50&quot;</span><span style="color: #000000; ">);

    </span><span style="color: #800000; font-weight: bold; ">submodules</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">world</span><span style="color: #000000; ">: </span><span style="color: #000000; ">BaseWorldUtility</span><span style="color: #000000; "> {
            </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
                </span><span style="color: #000000; ">playgroundSizeX</span><span style="color: #000000; "> = </span><span style="color: #000000; ">playgroundSizeX</span><span style="color: #000000; ">;
                </span><span style="color: #000000; ">playgroundSizeY</span><span style="color: #000000; "> = </span><span style="color: #000000; ">playgroundSizeY</span><span style="color: #000000; ">;
                </span><span style="color: #000000; ">playgroundSizeZ</span><span style="color: #000000; "> = </span><span style="color: #000000; ">playgroundSizeZ</span><span style="color: #000000; ">;
                </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;p=171,27;i=misc/globe&quot;</span><span style="color: #000000; ">);

        }
        </span><span style="color: #000000; ">connectionManager</span><span style="color: #000000; ">: </span><span style="color: #000000; ">ConnectionManager</span><span style="color: #000000; "> {
            </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
                </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;p=66,25;b=42,42,rect,green;i=abstract/multicast&quot;</span><span style="color: #000000; ">);
        }
        </span><span style="color: #000000; ">host</span><span style="color: #000000; ">[</span><span style="color: #000000; ">numHosts</span><span style="color: #000000; ">]: </span><span style="color: #000000; ">Host80211</span><span style="color: #000000; "> {
            </span><span style="color: #000000; ">netwType</span><span style="color: #000000; "> = </span><span style="color: #008000; ">&quot;BaseNetwLayer&quot;</span><span style="color: #000000; ">;
            </span><span style="color: #000000; ">applType</span><span style="color: #000000; "> = </span><span style="color: #008000; ">&quot;BurstApplLayer&quot;</span><span style="color: #000000; ">;
            </span><span style="color: #000000; ">mobType</span><span style="color: #000000; "> = </span><span style="color: #008000; ">&quot;ConstSpeedMobility&quot;</span><span style="color: #000000; ">;
        }

    </span><span style="color: #800000; font-weight: bold; ">connections</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">allowunconnected</span><span style="color: #000000; ">:
    </span><span style="color: #808080; font-style: italic; ">// all connections and gates are to be generated dynamically
</span><span style="color: #000000; ">
}
</span></pre>
   <hr><p class="footer"><a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top"><img src="by-sa.png"></a> This documentation is released under the <a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top">Creative Commons license</a></p>
   </body>
</html>
